package com.sxfq.loansupermarket.backsystem.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author stylefeng
 * @since 2017-07-11
 */
public class Role extends Model<Role> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	/**
	 * 序号
	 */
	private Integer num;
	/**
	 * 父角色id
	 */
	private Integer pid;
	/**
	 * 角色名称
	 */
	private String name;
	/**
	 * 部门名称
	 */
	private String deptid;
	/**
	 * 提示
	 */
	private String tips;
	/**
	 * 保留字段(暂时没用）
	 */
	private Integer version;
	private Integer phonePrivileges;
	private Integer phonePrivilegesexp;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNum() {
		return this.num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDeptid() {
		return this.deptid;
	}

	public void setDeptid(String deptid) {
		this.deptid = deptid;
	}

	public String getTips() {
		return this.tips;
	}

	public void setTips(String tips) {
		this.tips = tips;
	}

	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getPhonePrivileges() {
		return this.phonePrivileges;
	}

	public void setPhonePrivileges(Integer phonePrivileges) {
		this.phonePrivileges = phonePrivileges;
	}

	public Integer getPhonePrivilegesexp() {
		return this.phonePrivilegesexp;
	}

	public void setPhonePrivilegesexp(Integer phonePrivilegesexp) {
		this.phonePrivilegesexp = phonePrivilegesexp;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Role{" +
				"id=" + id +
				", num=" + num +
				", pid=" + pid +
				", name=" + name +
				", deptid=" + deptid +
				", tips=" + tips +
				", version=" + version +
				"}";
	}
}
